﻿using System;
using NUnit.Framework;

namespace Dgg.LearnYourTools.NUnit.C_Assertions
{
	[TestFixture]
	public class _016_NotAsserting
	{
		[Test]
		public void Fail()
		{
			try
			{
				Assert.Fail("Fail!!");
			}
			catch (AssertionException ex)
			{
				Assert.That(ex.Message, Is.EqualTo("Fail!!"));
			}
		}

		[Test]
		public void Ignore()
		{
			Assert.Ignore("It matters NOT!");
			throw new Exception("not thrown");
		}

		[Test]
		public void Inconclusive()
		{
			Assert.Inconclusive("Neither here nor there");
			throw new Exception("not thrown");
		}

		[Test]
		public void Pass_AlwaysPassing()
		{
			Assert.Pass("I Pass");
			throw new Exception("not thrown");
		}
	}
}
